<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <!--  -->
        <!-- 相同点：都是能够解析变量 -->
        <div>name:{{name}}</div>
        <div v-text="name"></div>
        <div v-html="name"></div>
        <!-- 不同点 -->
        <div>{{str}}</div>
        <div v-text="str"></div>
        <div v-html="str"></div>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                name:"狗蛋",
                str:"<h3>我是str字符串</h3>"
            }
        })
    </script>
</body>
</html>